import React from 'react'
import './FormItem.scss'

export default function FormItem(props) {
  const { label, name } = props
  return (
    <div className='form-item'>
      <label className='label' htmlFor={name}>{label}：</label>
      { props.children }
    </div>
  )
}
